 
<header id="header" class="mui-bar mui-bar-black mui-bar-nav">
    <a class="mui-icon mui-icon-left-nav mui-pull-left"  href="{:url('user/index')}"></a>
    <h1 class="mui-title">工地列表</h1>
</header>
<div class="mui-content mui-content-my projectList">
<form  method="POST" action="">
    <div class="search">
        <input type="text" name='building_name' value='{$building_name}' placeholder="输入工地名、公司名搜索">
    </div>
</form>
    <div class="mui-row">
        <div class="listnav mui-col-xs-3">
            <div>
                <a href="#">时间 <i class="icon_sort"></i></a>
            </div>
        </div>
        <div class="listnav mui-col-xs-3">
            <div>
                <a href="#">金额 <i class="icon_sort"></i></a>
            </div>
        </div>
        <div class="listnav mui-col-xs-3">
            <div>
                <a href="javascript:void(0);">
<?php  if($building_status == '1'){echo '进行中';}elseif($building_status == '2'){echo '完工';}elseif($building_status == '3'){echo '再次进行';}else{echo '状态';}?> 
                 <i class="icon_down1"></i></a>
                <div class="good_nav_sub1">
                    <div class="pop">
                        <ul>
                            <li><a href="/index/site/site_list.html">全部</a></li>
                            <li><a href="/index/site/site_list/building_status/1.html">进行中</a></li>
                            <li><a href="/index/site/site_list/building_status/2.html">结束</a></li>
                            <li><a href="/index/site/site_list/building_status/3.html">再次进行</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="listnav mui-col-xs-3">
            <div>
               <a href="#"> <img style="width: .9em;vertical-align: middle;margin-top: -2px;" src="__CDN__/style/images/list.png" alt=""> 按公司</a>
            </div>
        </div>

    </div>
    <ul class="mui-table-view">

         {volist name="result.rows" id="vv"}  
        <li class="mui-table-view-cell mui-media">
            <a href="{:url('site/site_detail',array('id'=>$vv['id']))}">
                <img class="mui-media-object mui-pull-left" src="<?php if($vv['building_info']){ echo "/".$vv['building_info']; }else{ echo "__CDN__/style/images/project.png";}?>">
                <div class="mui-media-body">
                    <div>工地名称：{$vv.building_name}  <span class="s1"><?php echo date("Y-m-d",$vv['building_begin_time'])?></span></div>
                    <div>公司名称：{$vv.building_customer_name}</div>
                    <div><span class="s3">￥<b>{$vv.building_amount}</b>W</span> <span style="background-color: #FEB74D" class="s2">
                        <?php  
                        if($vv['building_status'] == 1){
                            echo '进行中';
                        }elseif($vv['building_status'] == 2){
                            echo '进行中';
                        }elseif($vv['building_status'] == 3){
                            echo '再次开启';
                        }
                        ?> </span></div>
                </div>
            </a>
            <?php if($vv['building_is_encore'] == 1){ ?>
            <img class="return1" src="__CDN__/style/images/return1.png" alt="">
            <img class="return2" src="__CDN__/style/images/return2.png" alt="">
            <?php } ?>
        </li>
        {/volist}    

       

    </ul>
</div>
<script src="__CDN__/style/js/jquery-1.11.3.js"></script>
<script>
    $('.projectList .mui-col-xs-3>div').click(function () {
        $(this).parents(".mui-col-xs-3").siblings().children().children('.good_nav_sub1').css('display','none');
        if ($(this).children('.good_nav_sub1').css('display')==='none')
            $(this).children('.good_nav_sub1').css('display','block');
        else
            $(this).children('.good_nav_sub1').css('display','none');

    });
</script>
 